package com.zretc.service.impl;

import com.zretc.dao.TrackMapper;
import com.zretc.dao.TypeMapper;
import com.zretc.entity.Type;
import com.zretc.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author: bLUeSuMMerDreamer
 * @createTime: 2020-07-23 14:52
 */
@Service
public class TypeServiceImpl implements TypeService {
    @Autowired
    private TypeMapper typeMapper;

    /**
     * 获取类型名
     *
     * @return
     */
    @Override
    public List<Type> getAllType() {
        return typeMapper.findAllType();
    }

    /**
     * @param params
     * @author: bLUeSuMMerDreamer
     * @date: 2020/7/24 11:01
     * @return: com.zretc.entity.Type
     */
    @Override
    public List<Type> getTypesByParam(Map<String, Object> params) {

        return  typeMapper.findTypesByParam(params);
    }
}
